<#include "../header.ftl" />
<@head title="修改登录密码" />
		<script type="text/javascript" src="${base}/script/mlog.form.js" charset="utf-8"></script>
		<script type="text/javascript" src="${base}/script/jquery-validation/jquery.validate.js"></script>
		<script type="text/javascript" src="${base}/script/jquery-validation/jquery.metadata.js"></script>
		<script type="text/javascript" src="${base}/script/jquery-validation/validate.method.js"></script>
		<script type="text/javascript">
			$(document).ready(function(){
				mlog.form.validate({
					selector : "#userForm",
					errorLabelContainer : "#error",
					wrapper: 'li',
					onfocusout : false,
					onkeyup : false,
					onclick : false
				});
			});
		</script>
		<@side.sidenav active="修改登录密码"/>
	    <div class="g-content">
	        <div class="g-content-container">
	            <div class="g-p">
					<div class="m-crumb">
					    <ul class="f-cb">
					        <li><i>&gt;</i><a href="#">博客管理</a></li>
					        <li><i>&gt;</i><a href="#">修改登录密码</a></li>
					    </ul>
					</div>
					<div class="page-title">
						<h1>修改登录密码</h1>
					</div>
					<div class="m-content">
						<div id="error" class="message error" style="display:none;"></div>
						<form name="userForm" id="userForm" action="${spaceUrl}/admin/user/pwd/do" method="POST">
							<div class="label">
								<div class="title">原始密码：</div>
								<input name="oldPwd" id="oldPwd" type="password" class="input input-large" placeholder="请输入原始密码" validate="{required:true, messages:{required:'请输入原始密码'}}"/>
							</div>
							<div class="label">
								<div class="title">新密码：</div>
								<input name="newPwd" id="newPwd" type="password" class="input input-large" placeholder="请输入新密码" validate="{rangelength:[6,18], messages:{rangelength:'密码长度必须在{0}-{1}之间'}}"/>
							</div>
							<div class="label">
								<div class="title">重复密码：</div>
								<input name="rePwd" id="rePwd" type="password" class="input input-large" placeholder="请重复密码" validate="{equalTo:'#newPwd', messages:{equalTo:'两次输入的密码不匹配'}}"/>
							</div>
							<div class="label">
								<input type="submit" class="button" value="提交" style="margin-left:46px;"/>
							</div>
						</form>
					</div>
	            </div>
	        </div>
	    </div>
<#include "../footer.ftl" />